ExportByteArray
ExportByteArray[expr,"format"] generates a ByteArray object corresponding to expr exported in the specified format.
ExportByteArray[exprs,elems] generates a ByteArray object by treating exprs as elements specified by elems.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.